
function(copy_files_to_dir list_src dst_dir)

    set(_list_src ${${list_src}} )
    set(_dst_dir  ${${dst_dir}}  )

    foreach( src_file ${_list_src} )
        get_filename_component(src_name ${src_file} NAME)
        set(dst_file ${_dst_dir}/${src_name} )
   
#        message(STATUS " [-->] src: ${src_file}")
#        message(STATUS " [-->] dst: ${dst_file}")

    execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${src_file} ${dst_file}
#        RESULT_VARIABLE _result_command
#        OUTPUT_VARIABLE _out_command
#        ERROR_VARIABLE  _err_command 
    )

    endforeach()

endfunction()
